package com.jie.pojo;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import java.util.List;

/**
 * Created with IntelliJ IDEA.
 *
 * @Author: 曾豪杰
 * @Date: 2022/09/11/17:54
 * @Description:标签
 */
@Data
@TableName("tag")
public class Tag {
    @TableId
    private Long id;//id
    @NotBlank(message = "标签名称不能为空")
    private String name;//名称
    @TableField(exist = false)
    private List<Blog_Tag> blogList;//中间列表
    public Tag(){
    }
    @TableField(exist = false)
    private Long maxId;//最大值id
}
